package com.pattern.demo;

import com.pattern.demo.abstracts.Duck;
import com.pattern.demo.behavior.fly.FlyNoWay;
import com.pattern.demo.behavior.quack.Quack;

/**
 * @ClassName: ModeDuck 模型鸭子
 * @Description:
 * @Date: 2020/8/26 14:57
 * @Author: Song JinGen
 */
public class ModeDuck extends Duck {
    public  ModeDuck(){
        flyBehavior = new FlyNoWay();
        quackBehavior = new Quack();
    }

    @Override
    public void display() {
        System.out.println("我是一只模型鸭");
    }
}
